<?php

namespace App\Api\Controller;



use App\Api\Transformers\MatchTransformer;
use App\Match;
use Illuminate\Http\Request;


/**
 * Class MatchController
 * @package App\Api\Controller
 */
class MatchController extends BaseController
{
    /**
     * return all Match
     *
     * @return \Dingo\Api\Http\Response
     */
    public function index()
    {
        $matches = Match::all();

        return $this->response->collection($matches, new MatchTransformer());
    }

}